package znet

import (
	"zinx/ziface"
)

type Request struct {
	//和客户端建立好的连接
	conn ziface.IConnection
	//客户端的请求数据
	msg ziface.IMessage
}

func (r *Request) GetConnection() ziface.IConnection {
	return r.conn
}

func (r *Request) GetData() []byte {
	return r.msg.GetData()
}

func (r *Request) GetMsgId() uint32 {
	return r.msg.GetMsgId()
}
